//
//  OrderModel.swift
//  Box
//
//  Created by mn on 2025/3/30.
//
import Foundation
struct OrderListData: Codable {
    let data: [OrderModel]
}

struct OrderModel: Codable {
    let id: String
    let createTime: TimeInterval
    let name: String
    let mobile: String
    let addressPathDes: String
    let detailAddress: String
    let goodsId: String
    let price: Int
    let imageUrl: String
    let imgUrlList: [String]
    let goodsName: String
    let telephoneBill: Int
    let standards: String
    let count: Int
    let level: Int?
    let status: Int//状态 0待支付 1待发货 2待收货 3已完成 4已取消 5退货中
    var statusDesc: String{
        switch status {
        case 0:
            "待支付"
        case 1:
            "待发货"
        case 2:
            "待收货"
        case 3:
            "已完成"
        case 4:
            "已取消"
        case 5:
            "退货中"
        default:
            ""
        }
    }
    let updateTime: Int
    let postNo: String?
    let postMethodName: String?
    let dragonBall: Int
    let remark: String?
    let names: String?
    let realNames: String?
}
